package com.study.designpattern.decorator;

/**
 * <p>具体装饰类2</p>
 *
 * @author chentao
 * @version v 0.1 2022/9/7 14:36
 */
public class ConcreteDecorator2 extends Decorator {
    public ConcreteDecorator2(Component component) {
        super(component);
    }
    private void method2(){
        System.out.println("ConcreteDecorator2-method2");
    }
    public void operate(){
        this.method2();
        super.operate();
    }
}
